import { Controller, Get, Param } from '@nestjs/common';
import { WebCategoryService } from './web-category.service';

@Controller('web-category')
export class WebCategoryController {
    constructor(private readonly webCategoryService: WebCategoryService) { }

    @Get()
    list() {
        return this.webCategoryService.list()
    }

	@Get(':id')
	detail(@Param('id') id: string) {
		return this.webCategoryService.detail(+id)
	}
}
